/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.dusin.wufang.graph.shape;

import com.mxgraph.canvas.mxGraphics2DCanvas;
import com.mxgraph.shape.mxBasicShape;
import com.mxgraph.view.mxCellState;
import java.awt.Rectangle;

/**
 *
 * @author Admin
 */
public class Changxian extends mxBasicShape {

    @Override
    public void paintShape(mxGraphics2DCanvas canvas, mxCellState state) {
        Rectangle rect = state.getRectangle();
		int x = rect.x;
		int y = rect.y;
		int w = rect.width;
		int h = rect.height;
		
     if (configureGraphics(canvas, state, false))
		{
			
                        canvas.getGraphics().drawLine(x+10, y, x+10, y+30);
                        canvas.getGraphics().drawLine(x+20,y,x+20,y+30);
                        canvas.getGraphics().drawLine(x,y+15,x+10,y+15);
                        canvas.getGraphics().drawLine(x+20,y+15,x+30,y+15);
                        
		}                           
                
                
    }
}